<template>
    <!-- 装卸区 -->
    <div class="safetySpy_loading_zone">
        <div class="loading_zone_quantity">
            <div>今日装卸量</div>
            <div class="loading_zone_num">
                <div>
                    <span>5</span>
                    <span>0</span>
                    <span>0</span>
                </div>
                <div>位</div>
            </div>
        </div>
        <div class="loading_zone_wook">
            <div>
                <div class="zone_wook_logo">
                    <span>
                        <img src="@/assets/image/idlelogo.png" alt="" />
                    </span>
                    <span>空闲中</span>
                </div>
                <div class="zone_wook_number">
                    <span style="color: #2cf6a9">6</span>
                    <span>个</span>
                </div>
            </div>
            <div>
                <div class="zone_wook_logo">
                    <span>
                        <img src="../../../../assets/image/loadlogo.png" alt="" />
                    </span>
                    <span>装卸中</span>
                </div>
                <div class="zone_wook_number">
                    <span style="color: #fed537">4</span>
                    <span>个</span>
                </div>
            </div>
        </div>
        <div class="monthly_measure">
            <CommonTitleComponent text="月度装卸量及环比增速"></CommonTitleComponent>
            <div class="loading_zone_echarts">
                <chart-view :chart-option="EchartsMethods.loadingzone()" :auto-resize="true" height="100%"></chart-view>
            </div>
        </div>
    </div>
</template>
<script lang="ts" setup>
import { reactive, onMounted } from 'vue';
import { EchartsMethods } from '@/chart/index';
</script>
<style scoped lang="scss">
.safetySpy_loading_zone {
    height: 90%;
    .loading_zone_quantity {
        width: 100%;
        padding: 7px 12px;
        height: 26px;
        background: url(@/assets/image/loadingzonequantityback.png) no-repeat;
        background-size: 100% 100%;
        margin-top: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;
        > div {
            &:nth-of-type(1) {
                font-size: 12px;
                font-family: Source Han Sans CN;
                color: #ffffff;
                letter-spacing: 3px;
            }
        }
        .loading_zone_num {
            display: flex;
            justify-content: space-between;
            align-items: center;
            > div {
                &:nth-of-type(1) {
                    display: flex;
                    justify-content: space-between;
                    span {
                        display: block;
                        width: 32px;
                        height: 42px;
                        line-height: 42px;
                        font-size: 20px;
                        color: #ffffff;
                        text-align: center;
                        margin-top: -2px;
                        background: url(@/assets/image/loadingZonenumback.png) no-repeat;
                        background-size: 100% 100%;
                        margin-right: 10px;
                    }
                }
                &:nth-of-type(2) {
                    font-size: 12px;
                    font-family: Source Han Sans CN;
                    color: #ffffff;
                    margin-right: 10px;
                }
            }
        }
    }
    .loading_zone_wook {
        display: flex;
        align-items: center;
        flex-grow: 1;
        justify-content: space-between;
        margin-top: 14px;
        > div {
            width: calc(50% - 2px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            background: url(@/assets/image/zonewookback.png) no-repeat;
            background-size: 100% 100%;
            &:nth-of-type(1) {
                margin-right: 4px;
            }
            > div {
                font-size: 12px;
                color: #ffffff;
            }
            .zone_wook_logo {
                display: flex;
                align-items: center;
                span {
                    &:nth-of-type(1) {
                        display: inline-block;
                        width: 15px;
                        height: 17px;
                        margin-right: 12px;
                        img {
                            width: 100%;
                        }
                    }
                }
            }
            .zone_wook_number {
                display: flex;
                align-items: center;
                span {
                    &:nth-of-type(1) {
                        font-size: 20px;
                    }
                    &:nth-of-type(2) {
                        display: inline-block;
                        margin-top: 3px;
                    }
                }
            }
        }
    }
    .monthly_measure {
        margin-top: 20px;
        height: 80%;
        .loading_zone_echarts {
            height: 90%;
            padding-top: 10px;
            div {
                height: 100%;
            }
        }
    }
}
</style>
